package com.jiazhong.shuzu;

public class Demo07 {
    public static void main(String[] args) {
        int a[]={34,43,13,21,23,25,45,63,6};
        int temp=0;
        for (int i=0;i<a.length-1;i++){//五轮
            for (int j=0;j<a.length-1;j++){//一轮五次
                if (a[j]>a[j+1]){
                    temp=a[j];
                    a[j]=a[j+1];
                    a[j+1]=temp;
                }
            }
            System.out.println("第"+(i+1)+"轮:");
            for (int k=0;k<a.length;k++){
                System.out.print(" "+a[k]);
            }
            System.out.println();
        }
    }
}
